//
//  FlyBaseTableViewController.h
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/9/4.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MJRefresh.h>

@interface FlyBaseTableViewController : UITableViewController<UIActionSheetDelegate>

/**
 tableView数据
 */
@property (nonatomic, strong) NSMutableArray *dataSource;

@property (assign, nonatomic) NSUInteger currentPage;
@property (assign, nonatomic) NSUInteger pageSize;

@property (assign, nonatomic) BOOL isNeedPopToRoot;// default is NO

- (void)configNavigationLeftItemWithImage:(UIImage *)image;
- (void)leftBarButtonAction:(id)sender;
- (void)configNavigationRightItemWithImage:(UIImage *)image;
- (void)configNavigationRightItmeWithTitle:(NSString *)title titleColor:(UIColor *)titleColor font:(UIFont *)font;
- (void)rightBarButtonAction:(id)sender;

- (void)showNoDataViewWithText:(NSString *)text;
- (void)showNoDataViewWithText:(NSString *)text offset:(CGFloat)offset;
- (void)hideNoDataView;

+ (instancetype)viewController;//主要用来从storyboard 加载控制器 子类重写

- (BOOL)userIsLogin;

@end

@interface FlyBaseTableViewController (Refresh)



/**
 添加下拉刷新
 */
- (void)addHeaderRefreshAction;

/**
 添加上拉加载
 */
- (void)addFooterRefreshAction;

/**
 addHeaderRefreshAction | addFooterRefreshAction
 */
- (void)addRefreshAction;

/**
 下拉刷新
 */
- (void)headerRefreshAction;
/**
 上拉加载
 */
- (void)footerRefreshAction;

/**
 结束刷新
 */
- (void)endRefresh;

@end

